<extend name="zh_cn:Public:base" />
<block name="title">
    <title>美住 - 查房消息</title>
</block>
<block name="extendHead">
    <link rel="stylesheet" type="text/css" href="/Public/dist/Home/common_control.css?rev=bdf8875f9e52f651ec877dc7073586ed">
    <link rel="stylesheet" type="text/css" href="/Public/dist/Home/BookPage/order.css?rev=0d4a16f66cfee62e528d5ab6581e68bd">
    <link rel="stylesheet" type="text/css" href="/Public/dist/Home/PushCenterPage/index.css?rev=b144f9fc4ef67824775f723e30102d76">
</block>
<block name="document">
    <div id="doc" class="container-above-md" data-today="{:date('Y-m-d')}">
        <include file="zh_cn:Public:Include_control_navbar" navbar-menu-pushing="active" />
        <div id="doc-body" class="row">
            <include file="zh_cn:Public:Include_setting_side" doc-side-push="active" />
            <div id="doc-center">
                <div class="content-panel">
                    <div id="filterHeaderTabContainer">
                        <include file="zh_cn:Public:Include_push_side" doc-side-check="btn-primary" />
                    </div>
                </div>
                <div id="filterHeader" class="typo-text-black-deep">
                    <div class="border-box hidden">
                        <div class="dropdown">
                            <ul class="dropdown-menu dropdown-menu-left dropdown-menu-expand" id="filterRoomMenu">
                                <li class='<empty name="filterRoomId">active<assign name="filterRoomName" value="所有房间" data-value=""/></empty>'><a href="javascript:void(0);">所有房间</a></li>
                                <volist name="rooms" id="roomType">
                                    <volist name="roomType['room']" id="room">
                                        <li class='<eq name="room.id" value="$filterRoomId">active<assign name="filterRoomName" value="$room.name" /></eq>' data-from="{$room.roomfrom}" data-name="{$room.name}" data-value="{$room.id}" data-type-value="{$roomType.id}" data-price="{$roomType.price}"><a href="javascript:void(0);">{$room.name}<if condition="$room.isdelete eq 1"><span class="text-accent">(已删除)</span></if></a></li>
                                    </volist>
                                </volist>
                            </ul>
                            <a data-toggle="dropdown" id="filterRoom" data-value="{$filterRoomId}" class="without-min-width btn" href="javascript:void(0);"><span class="info">{$filterRoomName}</span><span class="caret"></span></a>
                        </div>
                    </div>
                    <div class="border-box" style="width: 228px;">
                        <notempty name="navbarHotels">
                            <li class='dropdown <eq name="currentHotel" value="">hidden</eq>' id="navbar-hotel-switch">
                                    <ul id="doc-header-dropdown" class="dropdown-menu dropdown-menu-attach">
                                        <div class="scrollContainer">     
                                            <!--<li><a class='nowrap-content <eq name="navbarHotel.hotelentity_id" value="">active</eq>' href="javascript:void(0)" data-hotel="0">全部客栈</a></li>-->
                                            <foreach name="navbarHotels" item="navbarHotel">
                                                <li><a class='nowrap-content <eq name="navbarHotel.status" value="1">hidden</eq>'  href="javascript:void(0)" data-hotel="{$navbarHotel.hotelentity_id}">{$navbarHotel.name}</a></li>
                                            </foreach>                                            
                                        </div> 
                                    </ul>   

                                <a id="doc-header-brand" data-toggle="dropdown" href="javascript:void(0);">
                                    <div class="nowrap-content">
                                       <if condition="(I('get.hotel') eq '')">全部客栈<else />{$hotelName}</if>
                                    </div>&nbsp;<span class="caret"></span>
                                </a>
                            </li>
                        </notempty>
                    </div>
                    <div class="border-box">
                        <div class="row">
                            <input id="filterName" class="form-control" type="text" autocomplete="off" placeholder="房间名/预订人姓名" value="">
                        </div>
                    </div>
                    <a class="btn-sm btn-accent btn-raised" id="filterSearch" href="/pushNews.html?keys=">查询</a>
                </div>
                <div class="content-panel">
                    <div class="content-panel-header">
                        <div class="content-panel-title">消息列表</div>
                    </div>
                    <div class="content-panel-body" id="push_content">
                        <notempty name="roomCheckInfo">
                            <table class="table content-panel-table">
                                <thead>
                                    <tr>
                                        <th>客栈名</th>
                                        <th>房间号</th>
                                        <th>入住人</th>
                                        <th>查房完成时间</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <volist name="roomCheckInfo" id="roomCheck">
                                        <tr class="message_list">
                                            <td class="col-xs-2">
                                                <div>{$roomCheck.hotelName}</div>
                                            </td>
                                            <td class="col-xs-1">
                                                <div>{$roomCheck.roomName}</div>
                                            </td>
                                            <td class="col-xs-1">
                                                <div>{$roomCheck.name}</div>
                                            </td>
                                            <td class="col-xs-3">
                                                <div>{$roomCheck.endTime}</div>
                                            </td>
                                            <td class="col-xs-1">
                                                <if condition="$roomCheck.type eq 0"><div>{$roomCheck.typeName}</div><else /><div style="color: #999;">{$roomCheck.typeName}</div></if>
                                            </td>
                                            <td class="col-xs-2">
                                                <div class="btn-link order-item" data-hotel="{$roomCheck.hotel}" data-parent="{$roomCheck.orderInfoId}" data-value="{$roomCheck.orderRoomId}" data-room="{$roomCheck.roomId}" data-check=1 >详情</div>
                                                <div class="btn-link btn-close" data-pushid="{$roomCheck.id}">删除</div>
                                            </td>
                                        </tr>
                                    </volist>
                                </tbody>
                            </table>     
                            <else/>
                            <div class="content-panel-empty vertical-middle-block sm-height typo-body-1">
                                <div class="vertical-middle-block-cell">未查询到任何提醒</div>
                            </div>
                        </notempty>                 
                    </div>
                    <div class="content-panel-footer">
                        <div class="pull-right">
                            {$pageFooter}
                        </div>
                        <div class="pull-right content-panel-pagination-info">共有&nbsp;<span class="text-accent">{$pageInfo.total}</span>&nbsp;条记录，总页数：&nbsp;<span class="text-accent">{$pageInfo.pageTotal}</span>
                        </div>
                    </div>
                </div>                
            </div>    
            <!--end of doc-center-->
        </div>
        <!--end of doc body-->
    </div>
    <!--检查房间状态模态框-->
    <include file="zh_cn:Public:Include_checkout_modal" />  
    <!--end of doc-->
    <include file="zh_cn:Public:Include_order_modal" />
    <!--身份认证模态框-->
    <include file="zh_cn:Public:Include_authentication_modal" />
</block>
<block name="extendFootJs">
    <script type="text/javascript" src="/Public/dist/Home/common_control.js?rev=9025986463b6793ec53391501cffad8d"></script>
    <script type="text/javascript" src="/Public/dist/Home/PushCenterPage/check.js?rev=f4d343beac892dcf6b4df761f292038d"></script>
    <script type="text/javascript" src="/Public/dist/Home/BookPage/order.js?rev=1c754b33391bf9a94933b1af78f23e2d"></script>
</block>